<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/7
 * Time: 10:34
 */

function checkId($username,$password){
    if($username == "admin" && $password == "123456"){
        return 110;
    }else{
        exit("用户名或密码错误");
    }
}

function checkAnswer($userid){
    switch ($userid){
        case 110:
            return "admin";
        default:
            exit("数据出错");
    }

}